from typing import TypeVar, Generic


class Captcha:
    img = str()
    token = str()

    def __init__(self, img, token) -> None:
        self.img = img
        self.token = token


class CaptchaBack:
    initTime = int()
    code = str()

    def __init__(self, code, time) -> None:
        self.code = code
        self.initTime = time


T = TypeVar('T')


class Page(Generic[T]):
    count = 0
    size = 10
    num = 1
    rows: list[T] = list()

    def __init__(self, count=0, size=10, num=1, rows=None) -> None:
        if rows is None:
            rows = []
        self.count = count
        self.num = num
        self.size = size
        self.rows = rows

